<?php
// +----------------------------------------------------------------------
// | Siteplus [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017 http://www.brsttech.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Pillar <service@brsttech.com>
// +----------------------------------------------------------------------
namespace app\common\model;
use think\Model;

class Admin extends Model{

    protected $pk       = 'id';
    protected $table    = 'sp_system_auth';
    
    /**
     * 读取用户权限组
     * @param int $id
     */
    public function find_group_info($id) {
        return $this->table('sp_system_group')->where(['id'=>$id])->field('auth_ids')->find();
        
    }

    /**
     * 读取用户权限节点
     * @param str $param
     */
    public function find_auth_select($ids) {
        return $this->all($ids);
    }   
}